#!/bin/sh

jarname=cy-chat-room.jar

git pull

PID=$(ps -ef|grep "$jarname"|grep -v grep|awk '{print $2}')

kill -9 $PID

mvn clean install -DskipTests

cp target/$jarname $jarname

nohup java -jar $jarname >>nohup.out 1>&1 &
